package com.hjw.java.inetface_demo2;

/**
 * 新时代大门，防火防水防盗牛逼plus
 * @author hjwStrart
 * @create 2022-01-13 15:11
 */
public class NewDoor extends Door implements Function {


    class InnerClass{

    }

    static class StaticInnerClass{

    }
    @Override
    public void openDoor() {
        System.out.println("开门");
    }

    @Override
    public void close() {
        System.out.println("关门");
    }

    @Override
    public String fireproof() {
        return "防火";
    }

    @Override
    public String waterproof() {
        return "防水";
    }

    @Override
    public String guard() {
        return "防盗";
    }

    @Override
    public String toString() {
        return "新时代大门，集" + fireproof() + "、" + waterproof() + "、" + guard() + "等功能于一体，真是牛逼plus";
    }
}
